/**
 * 2.使用char类型,分别保存\n \t \r \\ 1 2 3等字符,并打印输出
 * Homework02.java
 */
package chapter03.变量;

public class Homework02 {
    //编写一个main方法
    public static void main(String[] args) {
        //使用char类型,分别保存\n \t \r \\ 1 2 3等字符,并打印输出
        char c1 = '\n'; //换行
        char c2 = '\t'; //制表符 ctrl + d
        char c3 = '\r'; //回车
        char c4 = '\\'; //输出\
        char c5 = '1';
        char c6 = '2';
        char c7 = '3';
        System.out.println(c1);
        System.out.println(c2);
        System.out.println(c3);
        System.out.println(c4);
        System.out.println(c5);
        System.out.println(c6);
        System.out.println(c7);
    }
}
